package beans;

import java.util.List;
import java.util.Map;

public class Person {
	private String name;
	private int age;
	private Car car;
	private long money;
	private List<Car> cars; 
	private Map<String, String> map;
	
	public void setName(String name) {
		this.name = name;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public void setCar(Car car) {
		this.car = car;
	}
	public Car getCar() {
		return car;
	}
	public long getMoney() {
		return money;
	}
	public void setCars(List<Car> cars) {
		this.cars = cars;
	}
	public void setMap(Map<String, String> map) {
		this.map = map;
	}
	public void setMoney(long money) {
		this.money = money;
	}
	
	public void showCars() {
		System.out.println(this.cars);
	}
	public void showMap() {
		System.out.println(this.map);
	}
	
	public void init() {
		System.out.println("初始化");
	}
	public void dealloc() {
		System.out.println("结束");
	}
	
	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", car=" + car + ", cars=" + cars + ", map=" + map + "]";
	}
	
	
	
	
}
